<?php 

if(!defined('ADMIN')){
	exit('Access Denied');
}


?>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=addedipoint" method="post" name="form1" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">

<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="50">
<p><label>编码：</label>
<input name="pointcode" type="text" style="width:300px" id="pointcode" value="<?=$row['pointcode']?>" class="required" />
</p>
<p><label>密码：</label>
<input name="adminpass" style="width:300px" type="password" id="adminpass" value="" <? if(empty($row['id'])){?>class="required"<?}?>  />
</p>
<p><label>配送点名称：</label>
<input name="title" type="text" style="width:300px" id="title" value="<?=$row['title']?>" class="required" />
</p>
<p><label>实际地址：</label>
<input name="address" style="width:300px" type="text" id="address" value="<?=$row["address"]?>"   />
</p>
<p><label>营业时间：</label>
<input name="worktime" style="width:300px" type="text" id="worktime" value="<?=$row["worktime"]?>"   />
</p>

<p><label>负责人：</label>
<input name="manage" style="width:300px" type="text" id="manage" value="<?=$row['manage']?>"   />
</p>
<p><label>区域：</label>
<script type="text/javascript" src="js/jsAddress.js"></script> 省：<select id="province1429411898" name="province"></select>
市：<select id="city1429411898" name="city"></select>
区：<select id="district1429411898" name="district"></select>
<script type="text/javascript">
	addressInit("province1429411898", "city1429411898", "district1429411898", "<?=$row['area_province']?>", "<?=$row['area_city']?>", "<?=$row['area_district']?>");
</script>

</p>
<p><label>手机号码：</label>
<input name="tel" style="width:300px" type="text" id="tel" value="<?=$row['tel']?>"   />
</p>
</table>
</div>
<div class="formBar">
	<ul>
	<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
	<li>
	<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
	</li>
</ul>
</div>
</form>
</div>
